updated RaggedArray.java