Added extend_right and extend_bottom method to Matrix