Simple implementation of 2D guillotine cutting algorithm