Updated cabal configuration to remove warning
Added tests for indexOfMax and countPartitions