[dev] Added simple upper/lower matrix functions.