fixed issue in addRear method, added getSize and insertAt methods