Move matrix manipulators into led-matrix header

This pull request contains some commits from another fork that modify the library to work with a 16x32 LED matrix. The relevant commit is the last one by me, you might want to cherrypick it.