Updating versions includig codes from SPOJ