I have rearranged some files and fixed MiddleSquare.java(it was only a special case).