Beginnings of syntactic search; added new priority queue