[feature] [heap] add compare functions

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>
[style] no parentheses for `sizeof expression`

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>