Removed dimensions type parameter to matrices because opencv actually has crap support for anything other than 2D matrices (and 1D matrices with a single row and multiple columns). Used this fact to add easy indexing.