checking how much adding and removing from arraylist slows process