creatematrix & randomly index matrix
find local cells surrounding focal cells
added corners to local search and fixed bugs
fixed syntax of else if statements
update else if