A small scala program categories files under a directory