Taming the Gerrymander—Statistical physics approach to Political Districting Problem