Simple grep library written in java