add Position class, Gemfile and specs

massive performance improvement is large dimensions