numerical error problem (giving seg fault or other memory related errors) avoided by some patches. Nicer implementation,expected soon