0hh1 solver, written entirely in Swift