A purely functional library containing spatial constructs and algorithms written in the scala programming language