add heap.scala for Scala implementation

Scala Implementation. As fast as the java one.