Implemented the method intersectBFS in node

Trying to reorder files and stuff. I'll push before that