solution for 3a
Solves 3a-large in reasonable time.