algo.java has method and linklist