Matrix Completion from General Deterministic Sampling Patterns