splitAt method created
Working splitAt method and test