Layer: implement a const iterator
add 2D vector and rect classes
implement maximizing