Added two simple matrix algorithms.