code and tests for implemeting the binary matrix pedestrain tracking algorithm