Chakravala method