function that checks the type of a prior and whether it is correct
read_prior(prior, minx, maxx, ubl, ubr, lb)
list with type of prior and prior parameters
list with prior parameters or a cutoff value
minimum value of the score
maximum value of the score
minimum value of the window's left boundary point
maximum value of the window's right boundary point
minimum window size