tested against wallstreet for speed, all sentences completed in 256 seconds, using pypy and left corner trick