A java assignment for my Algorthms Course