Data Structure & Algorithms implementation in Java