Added operator[] to vector for better interfacing