Implement moveToInitialPosition()

- Fix setRawData()
- Fix index representation: size -> (head + tail)
Implement pop() in Queue

- Add JUnit tests
Merge branch 'master' into android