added circlematrix problem in java