Changed ease function, added aabb point test

Changed ease function from cosine to cubic (almost the same curves, but
much faster) and added aabb point testing.