Update fill.php

Fill algorithm on php