bug: x goes top to bottom and therefore refers to height. Added example using the EDWARDS-BELL-OHLSON algorithm as lambda