removed dead store to local variable
changed inefficient new Integer() to Integer.valueOf() and fixed a bug Z-position in compareTo
removed unused private method