Design of functional programming library for three dimensional graphics rendering