Generic classes for algorithms defined.
Added priority queue for A*