Create algo.js

Create the grid generation functions