Added dimension and size native functions for matrices