Establishing API for Programming Assignment 1: Percolation