BFS Implementation
Fixed bug where accessing array members did not apply member offset.