Coding using vectors and their algorithms