Example test cases can be found here on Piotr Kustra's website. Case 1 - file contents 0.1 0.1 4 4 25 700 7800 300 1200 50 100 500 Case 2 - file contents 0.1 0.1 31 31 25 700 7800 300 1200 1 100 100