added support till d = 15. Much better implementation is possible. But this is enough for now. If anyone else need better support I can help you when i have some down time.