Handle the very unlikey case that there are no second largest or second smallest numbers (task 6)
Refactored if statement into if expression (task 5b)
Rewrote power method to not use Math.pow (task 5b)