Made lookup utilize a matrix input for key.match again.  close #127