Implemented collision detector algorithm

Exponential time algorithm to check if each body is colliding with
another.