Removed a bug causeing huge memory usage, optimized this stuff a little. Runs 100x faster now.
Modified algorithm to match real ILA
Added working ILA