Midpoint

Implemented midpoint finder