Added Apache license. Close #13.

Apache 2.0 license added. For clarity, even the older versions of the code use this license.