add Matrix class that can access element of matrix by alphabet pair