Version 1.1

Added multi threading and few oprimizations