simple path finding lib in php (using a* atm)