added pivot array program for finding element