add Position class, Gemfile and specs

massive performance improvement in large dimensions