Clone of Parag K. Mital's pkmMatrix library http://pkmital.com/