created new Nearphase class, moved World.contacts and .frictionEquations to that