revert back to arrays in PathFinder. this is due to vector's limitation
of accessing unassingned index. but will make another try soon in using
vector. need some tweaks to the class.