Implemented free slot finding algorithm

Closes #10