A small ruby method that figures out the best days to bey and sell stock from an array