add two pros

find peak elem
find minimum elem