to find second lowest element of an array