Fix bug and improve speed

#9
No description provided.

optimized... sub-optimal code

AP123 changed pull request status to merged

Sign up or log in to comment