Code for splitting a bill quickly and fairly