How about this? You identify peaks by getting numbers that have a smaller number after and before it (only after or before for first and last), then take the 2 highest from these peaks?