*Made changes to finding the segment number with highest energy value