wrote about algo in grain bound