A simple mathematical morphology library