My solutions to Softwire's third speed coding competition