Initial commit of intersection code