fn astar(square: &Square, grid_data: Vec<u32>) -> usize
Implementation of A* algorithm without using the decrease-key functionality.