Refactored the element library to geometry library.

Geometry library makes more sense.