array based decoder
processes all nearest neighbors with ELFHASH intersections
moved test cases out of functions. cleaned up and added comments.