Add plane primitive

Also changed hypermath into a cpp file.