added OddOccurances and pow