Implemented a-star