Replace division with arithmetic shift

#memoryleaksarefornoobs