pr5 updated

show error message if n<p since global minimizer does not exist in this
case.