Represent vectors in Java using integer components