Added an A-star implementation.