changed the name of the function determine-monotonicity to just monotonicity