Moved stereographic projection code to separate file
Moved local max checking code to separate file