Updated my very ugly tickmarks algorithm to Glassner's from "Graphics Gems"