Change acceleration, refactor pairwise routines

Changes Entity to an abstract class, fixes vector rotation behaviour,
refactors pairwise routines in World.