[ improvement ] map now has access to indices

The function one maps across a matrix now has access to the indices
of each cell it goes through as well as its content.
[ test + TODO ] handling test failure

* [test.sh] now catches failure and displays an appropriate message.
* TODO list added to the repository