Checks and new operations for vectors and matrices