added some tests, too slow atm, adding priority queue to the project