bug fixes and improvements
added module for maximum rectangle computation