Implements primitive sun model
Implements value function
Implements working sun and building isShade func
Implements working optimizer