Scala implementation of the fabulous grep (small subset) for learning purposes