java algorithm. eg. lru, sort etc