Added pruning. Can now run challenge problem in less that 1.5 mins!