implemented "nl"

A working version of "nl" that comes with a few basic tests and should run reasonably fast.
Todo: More tests (multiple files, weird combinations of parameters, ...) and a better help (then again, the original's isn't much better).
Closes #231.
This function should return ```int``` instead of using ```os::set_exit_status```.