Added mark functionality
added BFS algorithm.
Fixed infinite loop with wasVisted() function.
Modified numbering on mark() funtion.
adding trace functionality.
add class scope variable for DIMENSION of grid