Fixed issue on deque due to unsignedness, memory was always moved left